function sidebarWipeInOut()
{
    dojo.require('dojo.fx');
    dojo.require('dojo.fx.Toggler');

    function wipeIn() {
        dojo.style("rightCol", "display", "block");
        var wipeArgs = {
            node: "rightCol",
            duration: 500,
            onEnd: function(){
                dojo.byId("main").style.width = "78%";
            }
        };
        dojo.fx.wipeIn(wipeArgs).play();
    }

    function wipeOut() {
        var wipeArgs = {
            node: "rightCol",
            duration: 500,
            onEnd: function(){
                dojo.byId("main").style.width = "100%";
            }
        };
        dojo.fx.wipeOut(wipeArgs).play();
    }

    dojo.connect(dojo.byId("sidebarShower"), "onclick", wipeIn);
    dojo.connect(dojo.byId("sidebarHider"), "onclick", wipeOut);
}

dojo.addOnLoad(sidebarWipeInOut);